var ns;
app = new Vue({
    el: '#app',
    data: {
    },
    methods: {
        open_frame: function() {
            var that = this;
            var topH = 80;
            var frameH = api.winHeight - 50 - topH;
            ns.openFrame('home_news_frm', null, {
                rect: {
                    x: 0,
                    y: topH,
                    w: 'auto',
                    h: frameH
                }
            });
        },
        showPopup:function(){          
            api.sendEvent({
                name:'openpopup',
            })
        },
        
        // read_all: function(ID) {
        //     var that = this;
        //     api.sendEvent({
        //         name: 'do_read_all_msg',
        //     });
        // },
    }
});
apiready = function() {
    api.parseTapmode();
    ns = window.Foresight.Util;
    app.open_frame();
    api.addEventListener({
        name: 'doopenhomenewswin'
    }, function(ret, err) {
        app.open_frame();
    });
};
